package com.three.crm.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class UserBean implements Parcelable {

    private int id;
    private int sex;
    private String nickname;
    private String username;
    private String idcard;
    private String introduction;
    private String email;
    private String phone;
    private int status;
    private String headimgurl;

    public UserBean() {
    }

    public UserBean(int id, int sex, String nickname, String username, String idcard, String introduction, String email, String phone, int status, String headimgurl) {
        this.id = id;
        this.sex = sex;
        this.nickname = nickname;
        this.username = username;
        this.idcard = idcard;
        this.introduction = introduction;
        this.email = email;
        this.phone = phone;
        this.status = status;
        this.headimgurl = headimgurl;
    }

    protected UserBean(Parcel in) {
        id = in.readInt();
        sex = in.readInt();
        nickname = in.readString();
        username = in.readString();
        idcard = in.readString();
        introduction = in.readString();
        email = in.readString();
        phone = in.readString();
        status = in.readInt();
        headimgurl = in.readString();
    }

    public static final Creator<UserBean> CREATOR = new Creator<UserBean>() {
        @Override
        public UserBean createFromParcel(Parcel in) {
            return new UserBean(in);
        }

        @Override
        public UserBean[] newArray(int size) {
            return new UserBean[size];
        }
    };

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeInt(sex);
        dest.writeString(nickname);
        dest.writeString(username);
        dest.writeString(idcard);
        dest.writeString(introduction);
        dest.writeString(email);
        dest.writeString(phone);
        dest.writeInt(status);
        dest.writeString(headimgurl);
    }
}
